package com.quyeying.service;

import com.fasterxml.jackson.databind.JsonNode;
import com.quyeying.entity.TblOrderBaseEntity;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.Map;

public interface WxService {

    /**
     * jsapi下单
     */
    Map<String, Object> miniJsapi(TblOrderBaseEntity orderBaseEntity) throws IOException;

    /**
     * 发起退款
     */
    JsonNode refund(String transactionId, BigDecimal payerTotal, BigDecimal refundAmount) throws IOException;
}
